﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DbDiploma.Entities
{
    public class SubscriptionEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int SubscriptionId { get; set; }

        [Required]
        [EnumDataType(typeof(SubscriptionEnum))]
        public SubscriptionEnum Type { get; set; }

        public virtual ICollection<UserEntity> Subscribers { get; set; }
    }
}
